package com.ruoyi.api.activiti.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Author: lvaitly
 * Time: 11:09
 * Desc: 通用费用申请：维修，办公，差旅，补助，福利
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ExpenseReport extends DailyWorkBaseVO {
  @NotNull(message="经度不能为空")
  private String lng;//经度
  @NotNull(message="纬度不能为空")
  private String lat;//经度
  private String plateNo;//车牌号
  private String engineerName;//维修工程师名
  private String engineerPhone;//维修工程师电话
  private List<String> engineerID;//维修工程师身份证
  private Long enventTime;//事件开始时间，如维修时间，出差时间
  private Long enventDuration;//事件持续时长, 结束时间
  private String address;//地点：维修等
  private String reason;//原因陈述
  private String expenseType;//费用类别
  private String maintanceReason;//维修原因陈述
  private List<String> imgs;//维修图片url集合
  private List<String> videos;//维修视频url集合
  private List<String> partsImgs;//上传清单url集合
  private String workTime;//工时
  private Integer discount;//优惠折扣 0~100%
  private Long workPrice;//每小时 工价
  private Long expense;//花费费用=工价*工时*折扣优惠
  private List<VehicleMaintancePartsVO> partsExpenses;//配件零件费用
  private Long totalExpense;//总费用=配件费+工费
  private List<OtherExpense> otherExpenses;//各种其他费用
}
